<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button onclick="del()">删除</button>
<button onclick="wopen()">弹窗</button>
<button onclick="wclose()">关闭</button>
<a href="open.html">open</a>
<script type="text/javascript">
    function wclose() {
        window.close();
    }

    function del() {
        var flag = confirm("确定删除吗?")
        if (flag) {
            alert("删除成功")
        } else {
            alert("取消删除")
        }
    }

    function wopen() {
        window.open("open.html", "新窗口", "fullscreen=yes,location=no");
    }
</script>
</body>
</html>